package org.demo.datasoureces.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.util.Date;

@Data
@Table("userinfo")
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo implements Serializable {
    @Id
    private Long id;
    private String name;
    private Integer age;
    @TableField(value = "user_desc")
    private String userDesc;
    private String guid;
    @TableField(value = "user_createtime")
    private Date createTime;
}
